unsigned char ATT;

void LoadATT(unsigned char att)
{
  if(att&0x20) PORTD&=~(1<<PD7); else PORTD|=(1<<PD7);
  if(att&0x10) PORTC&=~(1<<PC2); else PORTC|=(1<<PC2);
  if(att&0x08) PORTC&=~(1<<PC4); else PORTC|=(1<<PC4);
  if(att&0x04) PORTC&=~(1<<PC5); else PORTC|=(1<<PC5);
  if(att&0x02) PORTC&=~(1<<PC3); else PORTC|=(1<<PC3);
  if(att&0x01) PORTB&=~(1<<PB0); else PORTB|=(1<<PB0);
};

